<?php $this->assign("title", "Agregar Parada"); ?>
<?php 	
	$this->start('script');
		echo '<script type="text/javascript">var itsclicked = false;</script>';
		echo $this->Html->script('http://js.cit.api.here.com/se/2.5.4/jsl.js?with=all');
		echo $this->Html->script('Paradas/mapa.min');
	$this->end(); 
	$this->Js->set('editar',false);
?>
<h2>Agregar Parada</h2>
<div class="cols-display">
	<div class="cols2">
		<?php
			echo $this->Form->create('Parada',array('onsubmit' => 'return itsclicked;'));
			echo $this->Form->input('nombre_parada',array('style'=>'width:350pt'));
			echo $this->Form->input('direccion_parada', array('style'=>'width:350pt'));
			echo $this->Form->hidden('latitud',array('style'=>'width:350pt'));
			echo $this->Form->hidden('longitud',array('style'=>'width:350pt'));
			echo $this->Form->submit('Guardar Parada',array(
									'onmousedown' =>'itsclicked = true; return true;',
									'onkeydown' =>'itsclicked = true; return true;'));
			echo $this->Form->end();
		?>
	</div>
	<div class="cols2">
		<div id="map"></div>
	</div>
</div>
